﻿#ifndef CONFIGHELPER_H
#define CONFIGHELPER_H

#include <QObject>

class QSettings;

class ConfigHelper : public QObject
{
    Q_OBJECT
public:
    static ConfigHelper *getInstance();

public:
    Q_INVOKABLE QString getVersion();
    Q_INVOKABLE QString getLanguage();

    Q_INVOKABLE void setLanguage(const QString &country);

private:
    explicit ConfigHelper(QObject *parent = nullptr);
    static ConfigHelper *m_config;

    ConfigHelper(const ConfigHelper &) = delete;
    ConfigHelper &operator =(const ConfigHelper &) = delete;

    QSettings *m_setting = nullptr;
private:

};

#endif // CONFIGHELPER_H
